import request from '@/router/axios'

export function fetchList (query) {
  return request({
    url: '/admin/identity/list',
    method: 'get',
    params: query
  })
}

export function fetchTagsAll (query) {
  return request({
    url: '/admin/identity/all',
    method: 'get',
    params: query
  })
}


export function putIdentity(query) {
  return request({
    url: "/admin/identity/put",
    method: "post",
    data: query
  });
}

export function deleteIdentity(id) {
  return request({
    url: "/admin/identity/delete",
    method: "get",
    params: id
  });
}